Skip to main content

What’s New

Qrvey 8.7
Version 8.7 of the Qrvey platform is now available to customers! This version includes new features including area charts, the ability to pivot and export data, as well as numerous bug fixes and performance improvements.
Learn More
Qrvey 8.6
Version 8.6 of the Qrvey platform is now available to customers. This version includes several new feature enhancements and performance improvements.
Learn More
Required Update for 8.5.1
Attention 8.5.1 customers: for any 8.5.1 instance deployed prior to 08/05/2024, an update is required to ensure you are running the latest images.
Learn More
Qrvey 8.5
Version 8.5 (LTS) of the Qrvey platform is now available to customers. This version includes several new features and performance improvements.
Learn More
End-of-life Schedule
We've added a new article that lists the features and endpoints that have been scheduled for deprecation. All features and endpoints will be supported for (1) year after the release date of the LTS version that contains the alternative.
Learn More
Version: 8.7

Hierarchical Data

Qrvey has the ability to work with and analyze hierarchical data, which is often uploaded via JSON File. Hierarchical data allows you to organize information in a nested structure, making it easy to represent parent-child relationships. In Qrvey, hierarchical data can be used to create detailed, multi-level data visualizations and analyses.

Create a Hierarchical Dataset

hierarchical-data

To create a hierarchical dataset, follow these steps.

  1. Navigate to the Data > Dataset.
  2. Click New Dataset. A modal will appear.
  3. Find the desired JSON File connection from the list.
  4. Click Create. This will take you to the Dataset Design step.

View Hierarchical Dataset

  1. Navigate to the desired hierarchical dataset.
  2. Click to open it.
    If your JSON file contains numeric or text arrays, objects, or object arrays, the UI will reflect this.

For example, assuming the following JSON structure:

[
{
"Name":"John Smith",
"DOB":"12/23/1975",
"children":2,
"childrenAges":[10,12], // numeric array
"carModels":["Ford","Chevy"], // string array
"address": { "city":"Chicago", "state":"IL",}, // object
"countriesVisited":[ // object array
{ "id":10, "country":"Germany" },
{ "id":15, "country":"Spain" },
{ "id":18, "country":"Iraq" }
]
}
]

The Data > Dataset > Columns page will register these new data structures.

  • There are new column types like Numeric Array, Text Array, Object, and Object Array.
  • The Address column is an object that has its own nested columns.
  • CountriesVisited is an object array with its own nested columns. Furthermore, the column and its children are not selected and are in fact disabled.

hierarchical-data

You may also navigate into the Data > Dataset > View Source Data tab to see how the raw data is registered in Qrvey.

hierarchical-data

The parent records in the main data source have a one-to-many relationship with countriesVisited object array, which can act like a left join between two relational tables and can be “inflated” to produce a flat dataset.

Customize Hierarchical Datasets

You can apply Transformations as well as design and modify your dataset before loading it (just like with other datasets) as well as flatten object arrays.

In order to flatten an object array, follow these steps.

  1. Click the Transformations button on the top right corner of the columns list.
  2. Drag the Array Flatten transformation to the workspace.
  3. Select the Inflate option from the dropdown menu.

hierarchical-data

As soon as the Transformation dialog is closed, this transformation flattens the array and the effect can be seen on the Dataset Design tab.

hierarchical-data